package com.easyweb.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.easyweb.dao.BaseDao;
import com.easyweb.dao.TouTiaoDao;

@Repository
public class TouTiaoDaoImpl extends BaseDao implements TouTiaoDao{

	public List<Map<String, Object>> getSectionAvg() {
		return getSqlSession().selectList("selectSection_avg", null);
	}

	public List<Map<String, Object>> getTypeAvg() {
		return getSqlSession().selectList("selectType_avg", null);
	}

	public int getAuthorCount() {
		return getSqlSession().selectOne("selectAuthorCount", null);
	}

	public int getArticleCount() {
		return getSqlSession().selectOne("selectArticleCount", null);
	}

}
